<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>会员管理-营销中心-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
		    <div class="tit">会员管理</div>
				<ul>
						<{foreach from=$left_menu_min.list item=item}>
						<li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
						<{/foreach}>
				</ul>
		</div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
					<div class="tit p-lr20">
					    <span class="curr">课程明细</span>
					</div>
					<!--star内容区域-->
					<div class="mainScroll">
					    <div class="mainContainer line-all">
					        <!--star tabMainCont-->
					        <div class="tabMainCont">

					            <!--star营销渠道-->
								<div class="tabMainCont">
									<!--star会员管理-->
									<fieldset class="layui-elem-field">
										<legend>筛选</legend>
										<div class="layui-field-box">
											<form class="layui-form layui-form-pane1" action="" method="post">
												<div class="layui-form-item">
													<div class="layui-inline">
														<select name="data_type">
															<option value="0">类型</option>
															<option value="1" <{if $conditions.data_type == 1}>selected<{/if}>>视频课</option>
															<option value="2" <{if $conditions.data_type == 2}>selected<{/if}>>直播课</option>
															<option value="3" <{if $conditions.data_type == 3}>selected<{/if}>>面授课</option>
															<option value="4" <{if $conditions.data_type == 4}>selected<{/if}>>题库</option>
															<option value="5" <{if $conditions.data_type == 5}>selected<{/if}>>实训</option>
														</select>
													</div>
													<div class="layui-inline">
														<select name="lost_status">
															<option value="0">状态</option>
															<option value="1" <{if $conditions.lost_status == 1}>selected<{/if}>>未过期</option>
															<option value="2" <{if $conditions.lost_status == 2}>selected<{/if}>>已过期</option>
														</select>
													</div>
													<div class="layui-inline">
														<button type="submit" class="layui-btn">搜索</button>
														<a href="/users/student_item/<{$conditions['uid']}>/1" class="layui-btn">添加课程</a>
														<a href="/users/student_item/<{$conditions['uid']}>/4" class="layui-btn">添加题库</a>
														<a href="/users/student_item/<{$conditions['uid']}>/5" class="layui-btn">添加实训</a>
													</div>
												</div>
											</form>
										</div>
									</fieldset>
									<!--商品列表 star-->
									<div class="goods_list p-t10">
										<div class="mtc_tab">
											<!--star mc-->
											<div class="mc">

												<table class="layui-table">
															<tbody>
																<tr>
																	<th>ID</th>
																	<th>类型</th>
																	<th>名称</th>
																	<th>状态</th>
																	<th>操作</th>
																</tr>
															</tbody>
															<tbody>
																<{if !empty($data_list.count) }>
																<{foreach from=$data_list.result item=item}>
																	<tr>
																		<td>
																		<{$item.id}>
																		</td>
																		<td>
																		<{$item.type_name}>
																		</td>
																		<td>
																		<{$item.name}>
																		</td>
																		<td>
																		<{if $item['lose_time'] > $time}>
																			<{$item[ 'lose_time']|date_format: '%Y-%m-%d'}> 过期
																		<{else}>
																			已过期
																		<{/if}>
																		</td>

																		<td class=" tal">

																		<a href="/users/student_item/<{$conditions['uid']}>/<{$item.data_type}>/<{$item.data_id}>">续期</a>
																		<a href="javascript:;" class="delete" item_id="<{$item.id}>" >删除</a>
																		</td>
																	</tr>
																	<{/foreach}>
																	<{/if}>
															</tbody>
														</table>
												<div class="pages p-tb20" style="text-align:right;">
													<{if isset($pagination)}><{$pagination}><{/if}>
												</div>
											</div>
											<!--end mc-->
										</div>

									</div>
									<!--商品列表 end -->
									<!--star会员管理-->
								</div>
					            <!--end营销渠道-->


					        </div>
					        <!--end tabMainCont-->
					        </div>

					    </div>
					</div>
					<!--end内容区域-->
		</div>
	</div>
</div>
<{include file="footer.html"}>
<script>
	$(".delete").click(function(){
		var id = $(this).attr("item_id");
		layer.confirm("该删除操作不可恢复，是否确定删除？", {
		  	btn: ['确定','取消'] //按钮
		}, function(){
			window.location.href="/users/delete_student_item/"+id
		}, function(){
		  	
		});
	})
</script>
</body>
</html>
